ScanDeviceManager CreateScanDocumentOffline

Creates an instance ScanDocument which is not bound to any device type (Device independent ScanDocument). The resulting ScanDocument is an offline document which will have limited capability.

Overloads

public ScanDocument CreateScanDocumentOffline(DistanceUnit distanceUnits, bool keepScanShapes)
public ScanDocument CreateScanDocumentOffline(string deviceClassName, DistanceUnit distanceUnits, bool keepScanShapes)
public ScanDocument CreateScanDocumentOffline(DistanceUnit distanceUnits)
public ScanDocument CreateScanDocumentOffline(string deviceClassName, DistanceUnit distanceUnits)

 

Return value

ScanDocument Instance of a ScanDocument without bounding to any device type

 

Parameters

DistanceUnit distanceUnits Units to use with laser marking
bool keepScanShapes Keep shapes in editable form for future changes
string deviceClassName The device Class of the controller on which this file will be used

 

Note: The ScanDocument will convert all the shapes to suit the marking environment as they get added to the document automatically. If the keepScanShapes parameter set to TRUE, the ScanDocument will keep an extra copy of the shapes in editable form for future changes. This operation may increase the size of the ScanDocument due to the extra space reserved for the editable shapes.

 

Exceptions

ArgumentNullException DeviceClassName not specified or invalid
DeviceClassNotFoundException

Device class not configured or invalid

OfflineServicesNotSupportedException

Device class does not support offline document

 

Example

Copy
scanDocument = scanDeviceManager.CreateScanDocumentOffline(DistanceUnit.Millimeters, true);